package faa.objects;

import java.util.LinkedList;

public class Risk {

	private LinkedList<Mitigation> mitigations;
	enum RiskPriority {HIGH, MEDIUM, LOW};
	public RiskPriority rp;
	
	public void setMitigations(LinkedList<Mitigation> mit) {
		mitigations = mit;
	}
	
	public LinkedList<Mitigation> getMitigations() {
		return mitigations;
	}
	
	public void addMitigation(Mitigation mit) {
		mitigations.add(mit);
	}
	
	public void removeMitigation(int i) {
		mitigations.remove(i);
	}
	
	public void setRiskPriorityHigh(){
		this.rp = RiskPriority.HIGH;
	}
	
	public void setRiskPriorityMedium(){
		this.rp = RiskPriority.MEDIUM;
	}
	
	public void setRiskPriorityLow(){
		this.rp = RiskPriority.LOW;
	}

}
